package com.xindong.paking.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xindong.paking.dtos.CouponDTO;
import com.xindong.paking.dtos.UserCouponDTO;
import com.xindong.paking.entity.Coupon;
import com.xindong.paking.entity.UserCoupon;
import com.xindong.paking.utils.Result;

public interface CouponService extends IService<Coupon> {


    Result queryByConForPage(CouponDTO couponDTO);


    Result deleteById(Integer couponId);

    Result insertCoupon(Coupon dto);

    Result UpdateCoupon(Coupon dto);

    Result queryDetailById(Integer couponId);

    Result provideCoupon(UserCouponDTO dto);

    Result drawCoupon(UserCoupon dto);
}
